package com.example.demo.form;

import lombok.Data;
import org.hibernate.validator.constraints.NotEmpty;

import javax.validation.constraints.NotNull;
import java.sql.Date;
import java.sql.Timestamp;

@Data
public class BloodSugarRecordForm {

    @NotNull(message = "血糖值必填")
    private Double bloodSugar;

    @NotEmpty(message = "手机号必填")
    private String telephone;

    @NotNull(message = "测量时间段必填")
    private Integer periodType;

    @NotNull(message = "测量日期必填")
    private Date date;
    @NotNull(message = "测量时间必填")
    private Timestamp recordTime;

    @NotNull(message = "备注信息可以不填，但不能为null")
    private String remarks;

}
